package io.sage.modules.statistics.dao;

import io.sage.modules.statistics.entity.BStatisticsSoilWater;
import io.sage.modules.statistics.entity.BStatisticsSoilWaterExample;
import java.util.List;
import java.util.Map;

import io.sage.modules.statistics.vo.BStatisVo;
import org.apache.ibatis.annotations.Param;

public interface BStatisticsSoilWaterMapper {
    int countByExample(BStatisticsSoilWaterExample example);

    int deleteByExample(BStatisticsSoilWaterExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(BStatisticsSoilWater record);

    int insertSelective(BStatisticsSoilWater record);

    List<BStatisticsSoilWater> selectByExample(BStatisticsSoilWaterExample example);

    BStatisticsSoilWater selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") BStatisticsSoilWater record, @Param("example") BStatisticsSoilWaterExample example);

    int updateByExample(@Param("record") BStatisticsSoilWater record, @Param("example") BStatisticsSoilWaterExample example);

    int updateByPrimaryKeySelective(BStatisticsSoilWater record);

    int updateByPrimaryKey(BStatisticsSoilWater record);

    /**
	 * 土壤列表
	 * @param example
	 * @return
	 */
	List<BStatisticsSoilWater> selectStatisticsSoilWaterList(Map<String, Object> params);

	/**
	 * 批量添加传感器的土壤含水量
	 * @param list
	 * @return
	 */
	int saveSoilWaterList(List<BStatisticsSoilWater> list);

	int deleteBatchIds(Integer[] ids);

    /**
     * 根据库房id查询记录
     * @param params
     * @return
     */
    List<BStatisVo> selectListByWarehouseId(Map params);
}
